﻿#if ODIN_INSPECTOR
using Sirenix.OdinInspector;
#endif
using UnityEngine;

namespace JH
{
    /// <summary>
    ///  基础图表渲染类
    /// </summary>
    public abstract class BasicMonoRender<TPoint> : BasicMono<TPoint>, IChartRender
        where TPoint : struct
    {
        /// <summary>
        ///  渲染优先级，数值越小，渲染越靠前
        /// </summary>
        [field:SerializeField]
#if ODIN_INSPECTOR
        [field: LabelText("渲染优先级")]
#endif
        public int Priority { get; set; }

        /// <summary>
        ///  渲染
        /// </summary>
#if ODIN_INSPECTOR
        [Button("绘制")]
#endif
        public virtual void Render()
        {
                
        }
    }
}